package com.excellent.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.excellent.system.mapper.SysTeaStuMapper;
import com.excellent.system.domain.SysTeaStu;
import com.excellent.system.service.ISysTeaStuService;
import com.excellent.common.core.text.Convert;

/**
 * 确定学生导师Service业务层处理
 *
 * @author YYY
 * @date 2021-04-24
 */
@Service
public class SysTeaStuServiceImpl implements ISysTeaStuService
{
    @Autowired
    private SysTeaStuMapper sysTeaStuMapper;

    /**
     * 查询确定学生导师
     *
     * @param teaJno 确定学生导师ID
     * @return 确定学生导师
     */
    @Override
    public SysTeaStu selectSysTeaStuById(String teaJno)
    {
        return sysTeaStuMapper.selectSysTeaStuById(teaJno);
    }


    /**
     * 查询确定学生导师列表
     *
     * @param sysTeaStu 确定学生导师
     * @return 确定学生导师
     */
    @Override
    public List<SysTeaStu> selectSysTeaStuList(SysTeaStu sysTeaStu)
    {
        return sysTeaStuMapper.selectSysTeaStuList(sysTeaStu);
    }

    /**
     * 新增确定学生导师
     *
     * @param sysTeaStu 确定学生导师
     * @return 结果
     */
    @Override
    public int insertSysTeaStu(SysTeaStu sysTeaStu)
    {
        return sysTeaStuMapper.insertSysTeaStu(sysTeaStu);
    }

    /**
     * 修改确定学生导师
     *
     * @param sysTeaStu 确定学生导师
     * @return 结果
     */
    @Override
    public int updateSysTeaStu(SysTeaStu sysTeaStu)
    {
        return sysTeaStuMapper.updateSysTeaStu(sysTeaStu);
    }

    /**
     * 删除确定学生导师对象
     *
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    @Override
    public int deleteSysTeaStuByIds(String ids)
    {
        return sysTeaStuMapper.deleteSysTeaStuByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除确定学生导师信息
     *
     * @param teaJno 确定学生导师ID
     * @return 结果
     */
    @Override
    public int deleteSysTeaStuById(String teaJno)
    {
        return sysTeaStuMapper.deleteSysTeaStuById(teaJno);
    }

    /**
     * 查询确定学生导师
     *
     * @param teaJno 确定学生导师ID
     * @return 确定学生导师
     */
    @Override
    public int selectCountSysTeaStuById(String teaJno)
    {
        return sysTeaStuMapper.selectCountSysTeaStuById(teaJno);
    }

}
